<?php

	include("config.php");
	include(INCLUDEDIR."core.php");
	include("acceso.php");
	
	$tpl = new Plantilla();
	$tpl->setPlantilla("tpl.main.html");
	$tpl->prepare();
		
	$npublicaciones = intval(db::getScalar("SELECT COUNT(*) AS n FROM publicaciones WHERE aprobado = '0'"));
	$tpl->assign("npublicaciones",$npublicaciones);
	
	$tpl->Mostrar();
	

?>